package com.cdx.spring.factory;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author chedx
 * @data 2021/1/12 1:00 PM
 */
public class Test {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("/applicationContext5.xml");
        PsndocService psndocService = (PsndocService) ctx.getBean("psndocService");

        psndocService.login();
        psndocService.register();
    }
}
